function count = countNonZeroAC(q)
    % q should be N*64 matrix.
    count = nnz(q(:,2:end));
end

